﻿using FireChat.Share.Web.Model.Enums;
using SQLite;

namespace FireChat.Server.Database.Table.Accounts;


/// <summary>
/// 联系人申请
/// </summary>
[Table("ContactApply")]
internal class ContactApplyData : DataTableBase
{
    /// <summary>
    /// 账户Id
    /// </summary>
    [Column("AccountId")]
    [NotNull]
    public int AccountId { get; set; } = -1;


    /// <summary>
    /// 目标Id
    /// </summary>
    [Column("TargetId")]
    [NotNull]
    public int TargetId { get; set; } = -1;


    /// <summary>
    /// 目标类型
    /// </summary>
    [Column("TargetType")]
    [NotNull]
    public AccountType TargetType { get; set; } = AccountType.None;


    /// <summary>
    /// 是否操作完成
    /// </summary>
    [Column("IsProcess")]
    public bool IsProcessed { get; set; } = false;
}
